package com.example.jobback.websocket.resp;

import com.example.jobback.websocket.common.MessageType;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName: MessageSendResp
 * @Description: 消息发送响应体，其他响应体大部分都嵌套在message中，除了错误消息响应体
 * @Author: lhb
 * @Date: 2025/5/25
 */
@Data
public class MessageSendResp {
    private Long fromUserId;
    private Long toUserId;
    private String fromRole;
    private String toRole;
    private Object message;
    private MessageType messageType;
    private LocalDateTime createdAt;
    private Boolean online;
    /**
     * @Description: fromUserId关联用户相关信息
     * @Author lhb
     * @CreateTime 2025/7/22 14:23
     */
    private UserRelatedMessageResp userRelatedMessageResp;
}
